package com.jumi.microservice.material.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author ssk
 * @create 2020/8/4 14:22
 **/
@Data
@TableName(value = "goods", keepGlobalPrefix = true)
@ApiModel(value = "goods对象实体", description = "仓库商品")
public class JmGoods extends BaseEntity {

    @ApiModelProperty("测试id")
    private Long id;

    @ApiModelProperty("商品ID")
//    @TableId(type = IdType.AUTO,value = "goodsId")
    private Long goodsId;

    @ApiModelProperty("商品编码")
    private String goodsCode;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("旺店通ID")
    private Long wdtGoodsId;

    @ApiModelProperty("分类Id")
    private Long cateId;

    @ApiModelProperty("商品类型;0=售卖类型;1=其他类型")
    private Integer goodsType;

    @ApiModelProperty("供应商ID")
    private Long supplierId;

    @ApiModelProperty("商品单位ID")
    private Long unitId;

    @ApiModelProperty("保质期(月)")
    private Integer expire;

    @ApiModelProperty("状态;0=未禁用;1=已禁用")
    private Integer status;

    @ApiModelProperty("税务ID")
    private int taxId;
}
